<?php
//$this->headLink()->appendStylesheet($this->baseUrl('widget/dataTable/css/dataTables.css'));
//$this->headScript()->appendFile($this->baseUrl('widget/dataTable/js/jquery.dataTables.min.js'));
//$this->headScript()->appendFile($this->baseUrl('widget/dataTable/js/initDataTables.js'));

//$this->placeholder("navegacion")->set($this->navegacion($this->nav));
//$appConfig = Zend_Registry::get("appConfig");

//$perfil = App_Perfil::getInstance();
//$perfil->cargar("ACREDITAR_PROG_PREG");
//if (!$perfil->modificar()){
//    $this->form2->makeStatic();
//}

if (isset($this->autoCompleteUbicacion)){
    echo $this->autoCompleteUbicacion->renderElement();
}

$this->placeholder( 'contenttab' )->captureStart();

echo $this->form;

$this->placeholder( 'contenttab' )->captureEnd();
$this->tabs->agregar_contenido("Datos generales", $this->placeholder( 'contenttab' ));
echo $this->tabs->renderElement();
?>
<script type="text/javascript">
function cerrar_recargar_padre(parametros){
	var ploc = self.opener.location;
	var pag_padre = ploc.protocol+"//"+ploc.host+ploc.pathname;
	if(parametros=="" || typeof(parametros)=="undefined") {
		ploc.href=ploc.href;
	}else {
		ploc.href=pag_padre+"?"+parametros;
	}
	window.close();
}
$(function() {
	$("#fechaestadia").datepicker({'buttonImage': '<?= $this->baseUrl("img/calendar.png")?>'});
	var maxDate = $( "#fechaestadia" ).datepicker( "option", "maxDate" );
	$( "#fechaestadia" ).datepicker( "option", "maxDate", 'y m w' );
});
</script>